package com.gaeainfo.modules.alarm.collection.adapter;

import com.gaeainfo.framework.core.utils.common.GaeaCommonUtil;
import com.gaeainfo.modules.alarm.collection.dto.PersonDto;
import com.gaeainfo.modules.alarm.collection.dto.VehicleDto;
import com.gaeainfo.modules.base.adapter.CollectionAdapter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * Created by Caven on 2018/7/13.
 */

@Component("alarmCollectionAdapter")
public class AlarmCollectionAdapter extends CollectionAdapter {

    private final Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public Object gerPersonByPhone(String phone) {
        PersonDto personDto = null;
        try {

        } catch (Exception e) {
            logger.error(GaeaCommonUtil.getStackTrace(e));
        } finally {
            return personDto;
        }
    }

    @Override
    public Object gerPersonByIdCard(String idCard) {
        PersonDto personDto = null;
        try {

        } catch (Exception e) {
            logger.error(GaeaCommonUtil.getStackTrace(e));
        } finally {
            return personDto;
        }
    }

    @Override
    public boolean checkPersonIsFocus(String idCard) {
        return false;
    }

    @Override
    public boolean checkPersonIsFugitive(String idCard) {
        return false;
    }

    @Override
    public Object getVehicleByPlateNo(String plateNo) {
        VehicleDto vehicleDto = null;
        try {

        } catch (Exception e) {
            logger.error(GaeaCommonUtil.getStackTrace(e));
        } finally {
            return vehicleDto;
        }
    }

}
